package com.caregiver.watch.common.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description: 系统配置
 * @Author 疆戟
 * @Date 2025/10/26 14:57
 * @Version 1.0
 */
@Getter
@Component
public class SystemConfig {

    public static final String TEST = "test";

    public static final String DEV = "dev";

    public static final String PROD = "prod";


    @Value("${spring.profiles.active}")
    private String env;



    public boolean isDev() {
        return DEV.equalsIgnoreCase(env);
    }

    public boolean isTest() {
        return TEST.equalsIgnoreCase(env);
    }

    public boolean isProd() {
        return PROD.equalsIgnoreCase(env);
    }
}
